<div xmlns:h="http://java.sun.com/jsf/html"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:nxl="http://nuxeo.org/nxforms/layout">

  <c:if test="#{widget.handlingLabels}">
    <c:if test="#{!empty widget.label}">
      <ui:include src="/widgets/incl/widget_label_template.xhtml">
        <ui:param name="labelStyleClass" value="summaryTitle #{widgetProperty_headerStyleClass}" />
      </ui:include>
    </c:if>
    <c:if test="#{empty widget.label}">
      <ui:include src="/widgets/incl/label_template.xhtml">
        <ui:param name="label" value="label.content.header.currentLifecycleState" />
        <ui:param name="helpLabel" value="#{widget.helpLabel}" />
        <ui:param name="translated" value="true" />
        <ui:param name="required" value="#{widget.required}" />
        <ui:param name="labelStyleClass" value="summaryTitle #{widgetProperty_headerStyleClass}" />
      </ui:include>
    </c:if>
  </c:if>

  <h:outputText
    value="#{messages[currentDocument.currentLifeCycleState]}"
    styleClass="sticker" />
  <h:outputText value="#{messages['label.document.lock']}"
    title="#{messages['label.summary.by']} #{nxu:userFullName(currentDocumentLockDetails['document.locker'])}, #{messages['label.summary.the']} #{currentDocumentLockDetails['document.lock.created'].time}"
    styleClass="sticker warningLabel tipsyShow tipsyGravityS"
    rendered="#{!empty currentDocumentLockDetails}" />
</div>
